implementation of emitter for multiple return vals