Step one at making a first cut of  version that works.
Committing so that I can have other look at a problem I am having with promises.