add thrift communication and added files