debugging, still seg faulting.