separate preamble and content