Remove example configurations
Fix event emitter in middleware