segmentation faults on pcall
foreach produces a seqmentation fault