app structure refinement