wrote my own server