took the hashtable stuff out of segfault and put it into a library. good idea? dunno.