update examples to match new API and proper import path