got sample working. fixed minor bug with glance endpoint