handle case where you are not on a branch