derp, bugfixes to build_precon_cpd