d still segfaults ugh