re-arrange createNode so one can be create with only a node definition