changed chunk size and fixed process count
task done immedietly after get, commit moved to if block