code style
expire messages after 1000ms