pathway api added optimized
Merge pull request #1535 from ssushma/dev-branch

pathway api added optimized