better error logging in LogicEngine