refactoring towards scope security
adding build configurations to apps