figured out our seg fault, need to make sure havent introduced a memory leak but I dont think so. union wierdness