changed event emitter to add filename