this script works descent except for the google API