GCS logic for files handling