add support for resource