added autoclose and new bindings