Revert "Revert appconfig"

This reverts commit ee9a7f36d1b0a0ff0a0d5a7073f6ba5cd12badd3.