add tool
fixed bug for connect to server