fix castnig as unicode too early
remove config
overwrite if iid already exists