added error handing for google upload