after connect to server