basic connection with client