extracted core controller