further changes to the server code. it should work once we plug in the right api key