added save and load ofNode function