move main app to separate module