cleaning up conversion to CADPAGE format