add global vars for application, add notify