initial communication between client and server