update to add purgeBuffer API extension