rolled back changes to connection.js