flipped on path rewrite, added header padding