cleaned up the wait method, to be self contained
nodes of type === data can name the data property for their content display