server code constructions