setting headers in the function so we can set them using options