add app data and some new code