fix perms, properly