working on connecting to server