added getnodedata method to carts