final changes to api before working front-end