make the error message of load_gs more meaningful