update for v2 of api and sync with gitignore'