moved SD checks to boolean to hopefully improve SD card stuff