deprecated method createServer()