- added a common function BPF.getMongoClient
- made a few small changes to facilitate s3 storage