fixed api integration