wip: write server