test: almost rewrite callback
examples: make it work

but messy too.