pathway api added optimized