use app.set and not apply_configuration