quick start code for server2