add basic suport for compress directories