updateioinfo function update and cleanup.