adding support for chunksize