fix perm scripts
little requisite facotirisation