fix sending to non-localhost; change thrift protocol slightly