fixed some branching validation

seems to be working, will continue testing it