change msgkey to timestamp