update spec
fix html/text generation