fork and rehash API for our use