add rpc for reset perms