add methods to manage branches