more attempts to debug the io return value issue on w32