added support for cgi param 'gid' as a replacement for 'dsgid'