introducing chunk reading for files
is it easier to handle chunks as start/end pairs? end is exclusive...