some changes, added a user action when the cgf file exists