move more ppu functions out of the header