minor changes to IO