trials generator improvements