added layers compression support