fixed selector node... may need rewrite of entire package ... this is pretty messy with the recursive nature of this implementation