prepare for htmlization