add pm support