added sd card support