basic SD functionality working