parse response for message call; fix some bugs