add branches to make adding to text files easy, fix bug in cfg