syncs to latest API changes and fixes misspelled function names