adding support for protected resource