sd storage functions added