trieing to fix segfault ... in vain