add server events treatment