little fixes to make uses cases work: fix headers on empty output