add basic chunk reading