add optional timestamps to messages