refactor SD card mounting