still trying to track down the segfault bug