added support for mixed filetypes (ex, php.html)