+write files and makereplacer