reform main header and footer prefix