mds config, cleanup