actually use includeAppLayerAttributes and includeRelations for making app json