fixing up the api.