refine capfile