removed chash and put it in a own library.