move node def to its own file