slightly better infrastructure for copying uniforms