adding IOError