add some functions to work with sd card