set isFirstCall to true for logging