commit headers and footers