edited google drive write script