fixed up command engine to validate number of arguments.