moved #check command to resource scope
added authn:authenticate