working on server connection