add flags to control html output
Merge branch 'dom-mod' into develop