Update iohandler.cpp