added createConnection to server