refactor processors into their own module