TODO: this is a case where that global error handler will be nice