reverse server and app structure