refactoring controller Core should work not tested

Signed-off-by: pussbb <pussbb@gmail.com>