check if service container right before setOptions