added sd card to main program