fixed privs handling