fix for deciding on branch