modified complile files and configuration
Re-implement protocol in json
modified test case