relocate controller and emulatorController to the other package