update to recent API