add optional argument to -o allowing a result other than the first to be opened
reword