added enhanced command line handling of output module