make it work with mongodb 2.6