drop comments from page header
fix handling of empty bodies