implement new plugin framework
remove comments and unnecessary files from refactor
fix merge issues with archive changes, and update tests to be compatible