fixes to make fasthash more functional