added compression option