fixed the response for connect and print