Inline loop breaker

fix for #266