add capfile stuff