move hashing code to manager from repo