added stage header and stage footer