add code to get branch name, and so on