updates for io.repaint