add node to path