support for replicate and compress