update api to run on aws intead of heroku