fixed thrift detection