only using config to make it consistent

I think we should `config` instead of `app.config` to make it consistent with other codes
Merge pull request #166 from MQuy/patch-3

only using config to make it consistent