added the raw source for the nand logger, but not yet intergated