added sync_temp_path to locations optionally