support functions for header/footer