change glance client wrap function