updating server class