init for branch plugin