make the api consistent