made a lot of progress by fixing bad pointers for almost everything