init app structure