adding support for subdirectories in html processing