separate the save_temp flag from the use of intermediate.