some io.write updates