prep work for new types of htm[l] files, implement setup without breaking existing functionality