fixed the api up