debugged sd card logic