#27 fix "headers already sent" on load page