updated some api to fit front end