now only ioexceptions are caught