moved pm init