add cmdline parameters for creating index, works!