move save to the main