extracted visit method to better handle Net::Http