attempting to catch IOexception