Working on thrift connection