added ability to turn collections on and off
bugfix
speed up processing by disabling unused branches