add timestamp to open/close messages