aded chunksize as an option