move main from framework to app