log new parameters, fix some bugs