splitting headers and body