TODO: take care the -z option (formatting the cache)