hunting the segfault