refactored logging and pmc set structure