moved static function out of core class