added chunk compression