cleanup and store unmodified data for later processing