add path to options and pass options to globale error handler(s)