moved the pex interface out of generator and into pexinterface.R