add support for resource source