add main app and account structure