fix bug in storageClient and write to hidden folder