added support for static resources