added compress offline