added compress option