add save_gs and load_gs