add support for spy objects