adding the capfile and updating the config