changing the way templates generate pool params.