added methods to open a server and/or a connection