support for 9.x or greater

Made changed to support thrift greater than 9.x