two way communication with server now working