make the api more like mongo