leaky proxy workaround for absence of managed pointers
cleanup