small refactor
remember offset when checking for partial errors
don't mess with http agents