refactore extend structure and remove app.cfg