change the api a little