started server example (+ restructuring)