added an option to create resource nodes directly from strings