use .new instead of deprecated .connect