fixed blob storage logic