add support for staticresource