make some changes for communicate with server