update for new std::chan API