change config generation logic in Upper/Lowercase classes