add OPT support; truncate the output.