server class declaration