setup capfile