use gid_from_name unless a gid is provided