updated API so it works with /apps and /pttrnShots and adds app_name field