changed name of initConnection to open