tried to get code to talk to server