check sequence number on server side