close #30 register the app in global scope and attach to there all modules