progress on new aapi sample