switching machines. saving progress