some api stuff, not working