made api

WOrks now