dont assume headers is a dict