started to implement khash in join.c which is temporarily broken