fixes to 3d patch filing infrastructure