removed catch of IOExcpetion since it's no longer valid