figured out how to write to the SD card