add save_location api