writePacked tweaks, still need to resolve speed issues