add thrift and protobuf structs
add conf and proto