adding 2 functions to mike flash_mem functions