improve queue.  add scaffold for localstorage