default nodetypes is now a dictionary rather than a function.