another iteration of CPA file generator