trying to get the api right