add check to use local core if exists