adding support for getting attributes of resources