using api.export breaks the way EventEmitter exports it's object