removed the hostCollection and added isRunning api method usage