cleanup command line switches