error handler and missing files