update example with recent fixes