allow last_sequence to be nil and default to 0 value for it