minor fixes, sd card still not tested