mainLoop is now private