splitting head/footer files