adding functionality for segmented chunking of arbitrary sized files