add file exception handlers