resolve IOError[Errno 4]