migrate existing calls to new api