understand command line params
refactor command line