common util class for gs.