changed error message & permission for switch command