updated server to new api.