adding more usefull debug output for logic exceptions