Refine Capfile