update to work with new api and oauth