once converted to templating. Multiple emits not seeming to work.