got lots of server code working