further improvements to parameter search code