changing parent to allow node as well as id re issue #201
moving to getelements
changing to getElements