shuffled around command line processing to fix skipping