removed sleeps when response code is weirdly -1