header rewriting works now