update build script
app structure refactoring