fixing createhtml closes #165
merge