merge Blob and File handling