set up mainprog and fix missing import