added nand compatibility