add createdAt field to message