moved server code
created client code