update from session with Mike

move init code
added complete to promise