hunting leaks and mending hashtable