refactor, retries, put_header bug