processing controller refactoring