improve exception.
improved keyword tree.