file I/O exception handlers added