moved core-finding to compiler