add automatic timestamp to documents