refactoring of app and cap config added