improve branch and checkout commands