Make the parts of run separate methods, so that `start` and `stop` could be run over internal-api
Make the parts of run separate methods, so that
startandstopcould be run over internal-api