mannually added @lukapor 's thrift connection fixes #361