extracting common utility methods from module app
fixing module initialization error