general debugging of logic