html output fixes