refactors process / controller