add a new param
fix some errors