clean up argument parsing and configuration
simplify the configuration, test the file name replacement and make that configurable