fix inputdir indexes, make sure that task.command is set n json dumps.