fix some default values and change the max opt