updating sample to work with latest plugin