core/main controller