update to use config