changed processing and chunksize
try catch error
fixed keys