may have genpxd working for templated types