fixes for generating html pages