updated to use request in lieu of https as workaround for nginx proxy issue