added little functionality to sdcard.c