catching that ioerror