update to use config file as input parameter