begin integrating pegasus plugin