move compress code to new JAC class