basic connection to the server