construct the app