refactored cmdline params