still getting the segfaults