added open method for connections
improved connections