fixed some api stuff