start of server code and workspace setup