added working sample that causes segfault - todo : debug