use this to start the program as a whole