example uses the new API