fixing IO error, hopefully