add main with -t option.