adds branch mining into scaffold