writing to the SD card now works