clean up, comments
non blocking write on channel
simple api calling