updated to work with the new google api