some edits in prep for create_chunk to be threaded too