added some server & client code (both unfinished)