restore export-schema and get-hosts