modify cap file