prepare for output in cpf format