put connect() method, and auto connect
updating examples with