change global sogou function to require and define