syncs to latest API changes and fixes misspeled function names