added <results_directory argument> (optional, can still set to empty string and change via environment variable if needed)