add error check for duplicate defined node types