debugging statements to figure out where it crashes