added error handling if parent is not in plugin list