initial checkin of getNodes script