multi-sided emitter with support for middleware