split into format specific files with headers