added ability to exclude nodes from being added