Some bug fixes regarding requireAuth for custom commands.