change notify to notifyOnce for application.run event