only using config to make it consistent

I think we should `config` instead of `app.config` to make it consistent with other codes