trying to figure out the api