extern event emitter stuff