linkCore seems better as a prototype than static function