refactored, ports not needed in http request only connection