add a working example, fix externals