still segfaulting, can't figure it out, PROGRESS