renamed functions in CARD & FLASH