add imclient to communicate with server