initial checkin of get_gids method