modifications on how the connection is opened