another batch of connect.js changes... this time i should have it right!