move main function to root folder