modify protocl: improve communication protocol, less marshal and less flow.