fix sample to use new features api