handle the timestamp part neatly