server daemon skeleton