date changes
fixed segmentation fault on apple systems