use iterator to setting app configuration