keep setup method so that promise can be waited for.
Resolution for #1