add timestamp encoder