use config instead of sm