extend spawn helper to generate anything from node type