pass chans as const std::string&