improved plot, added dependency to for nodes