use the api instead