read write internal flash memory