must now happen before loading the listeners.