made it work with the mongo driver