make the api really work