adding results dir argument to main