updated to new token endpoint structure, add app detail