optimize eventpump assign of listener