started rewriting api for nodes