add config handler for app, fixes #9