implement HTML generator
fix for html generator