modify to use app.config