added node retrieval functionality