some fixes in the parameters and their checks