refresh class and add call server function