set headers properly