added convenience method for creating server.