added SD-card handling