migrating to new api