basic classes for the server interface