trying to support asynchronous addHash