update main indexing main flow
refactor
make the command line can run, even if it do nothing