new method using gridfs