fixed segfault yay, problem was not initializing page struct when allocating new page
nearly there