add ability to specify a feature_root branch
move branch checking to its own method