Enhancement:setting cap file