add engine singleton emitter and update everything to use that to listen for realm changes