basic html/scans mode functionality