added some logging for ioExceptions