support open/close branches