fix hash and friends return