simplify global module. move get out of core