oops, r was the http request, which was always non-nil