some patches to fix issue when using cp on proxied object structure