added support for HTML pages