refactors processor classes & functions, and builds initial copying code.