add support for no header, no footer