set the headers properly