fixed completion, concurrency, avoid throw error on empty cookie header, etc