added debug perm