SC api not working