set the static function for server call