Revert "moved to a streaming chanend"

This reverts commit 3952d3c6f90c6a9d3d4d545ee32220358622d097.
Revert "code clean up"

This reverts commit 228b81f3fbb086ec1883441d89171aade99954ce.
Revert "move to asynchronous interface"

This reverts commit c18909f8c6d714e718998c353bd2be75d89b8027.