pid/gid mess improved