bug fix for io file check