internal improvements to coxsimPoly