added html exporter helper functions