updated samples for new sdk