hash funcs: do some cleanup...