clearing branch and network states