tweaked hashover code