// keep track of the last existing item, and append new one
// after it, prepending if there is no last existing item
// the newly prepended/inserted item becomes the last existing
// keep track of the last existing item, and append new one
// after it, prepending if there is no last existing item
// the newly prepended/inserted item becomes the last existing