fix some bugs, create a second server