add getNodeDefinitions, fix loading when map is not provided