fixed naming of errors. Bumped to v2 since API changed.