add methods for checkout and get current branch name