add err callback for plugins