move newItem.complete() to the "done" handler