added pm support to prototype