clean up server class