fixed silly bug tied to which api scheme (http/https) to use