pass an object, get a proxy