change paramName to cmd