lots of debuging routines to find and fix a bug in the tracked resources system - needed to explicitly add LogicXXX nodes so that they weren't ignored.
fix bug in planning recusion around how I handled OR gates