support bodyless output. fixes issues #68 and #69