printing manager plugin refactor