moved chunk_hasher into main_loop, and got everything hooked up