basic server example derived from archetype (adapted)