added configurable timeout for old messages