segmentation fault caused previously by material loading. looking into it but for now commented the source of problem. fix later