fixed command line runner for file outputs