allow useHash to be set externally