init state with the last view seq if the source is a view
support erlang R16
more changes for R16