with SD card detection added
with sdcard detection added