debugging html generation