factored output channel out of simulate
Merge branch 'master' of https://github.com/nodename/async-plgd