set the branch at login