failed attempt to make Magnus hash functions work