changed ServerMain to Server