added console command for indexing