order of declaration 'get-registered-events'