fixed formatting
added packing and unpacking of cache dir