compiles, still crashes, I'm hanging myself kthxbye