avoid segmentation faults when the user doesn't specify number of throws