fix hashcompat deprecation warnings