set the correct Main of the program