add some code to change how what size of chunks to read