properly set headers