integrate rehash into new cli