change gDirService to Services.dirsvc