fix warnings.
introducing schema_list_translator and switch_translator.