converting app into a module