debugging rule-based...