export some functions.
refactor transport functionality into 'util/channels' module.