change the API to be more aligned with the mongo api