initial getnodes working; fixed self reference issue