trying to hunt down the seg fault