dont crash if config is undefined, added error to plugins