updates for new api vesion.