start cleanup of sd card code