Migrate io to the new scheme