changed to use config value