ALM-581 refactor pmc source and add to public repo