add config, client; upd model