command line pre-processing