further fixes to print from SD card logic