add back in file writes