changed nodes to accept references, as nodes are always killed before components are
resourceManager<texture> seems to work!