update to the latest apis