no need to port migrate_ini
get rid of read_only flag, use mode instead