example updated for v1.2