added support for resource files