added protected resource to check existing resources