more work on html output stuff