public function execute()
    {

        //if this is an internal Sherlock BatchCommand, make sure index/types/action are filled
        if ($this->batch instanceof BatchCommand) {
            $this->batch->fillIndex($this->params['index'][0])
                ->fillType($this->params['type'][0]);
        }

        return parent::execute();
    }