les_main only outputs to file now