changed from using file to using blob