moving peer version handling to lunch_socket