turn event emitters into streams and streams into event emitters