added sdcard flag