got rid of the Chan class; use plain functions in API