fix basic example after api change