rem: void select_chains(const vector<string>& chains) { selected_chainids = chains; }
add: void select_chains(const vector<string>& chainsarg) { selected_chainids = chainsarg; }
context:   void select_chains(const vector<string>& chains) { selected_chainids = chains; }