@:overload for connect and createConnection