changed branch detector to use Runner