tweaks
fixes to counter

there are problems with large amounts of keys still and grossness with
reallocating/resizing the hash table, of course. i split some of it out