Add deactivation opt

these commits add the ability to select a list of nodes to deactivate.

1 commit resolves a bug with returning active nodes.
2. adds the deactivate flag.