use addToAL in sendJsonResponse