add toString method to NodeRef, load and save logic