update connect.coffee