more lazy check on gid