add node and move towards JSON