preliminary handling of chunking