headers need to be set using the headers method instead of as a valu ein a hash