html generation fixes