add connect.java