fixing some api stuff