updates to aapi sample