writing and removing csv from media - the best thing I can figure out for now