add code to convert headers to a proper hash for VCR