basic fixes to ext/hash