a couple changes to make the api more like requests