updating to use app.set instead of global configuration object