added loopbreaker, not tested rightnow