harmonize header generation for cat3 export in UI and rake task. #5