checking branch sanity